

// 放公共变量，公共样式，引用独立样式组件样式
@import './model/button.less';
@import './model/card.less';
@import './model/carousel.less';
@import './model/col.less';
@import './model/color.less';
@import './model/grid.less';
@import './model/label.less';
@import './model/query.less';
@import './model/rate.less';
@import './model/row.less';
@import './model/tabs.less';
@import './model/upload.less';
@import './model/table.less';
@import './model/dropdown.less';
@import './model/timeline.less';
@import './model/steps.less';
@import './model/icon.less';
@import './model/cell.less';
@import './model/collapse.less';
@import './model/tabPage.less';
@import './model/form.less';
@import './model/formTabel.less';
@import './model/input.less';
@import './model/datePicker.less';
@import './model/menu.less';
@import './model/avatar.less';

.designer .content .main .canvas .combox {
  .comSelect,
  .comInput,
  .comInputNumber,
  .comDatePicker,
  .comCascader,
  .comTimePicker,
  .comCheckboxGroup,
  .comRadioGroup,
  .comSwitch {
    .label {
      width: 120px;
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
      text-align: right;
    }
  }
}
.content-wrapper {
  padding:0 ;
  .originProject {
    min-height: calc(100vh - 40px);
    .comCard {
      .ivu-card-body {
        padding: 0;
      }
    }
    &.subPage {
      .comCard {
        height: 100%;
        .ivu-card {
          height: 100%;
          overflow-y:auto;
          .comTabs {
            height: ~"calc(100vh - 226px)";
            overflow-y: auto;
          }
        }
      }
    }
  }
}
.comQuery .ivu-form.ivu-form-inline {
  .ivu-form-item {
    display: inline-block;
  }
}
.preview-form {
  overflow-x: hidden;
  overflow-y: auto;
  height: 100% !important;
  .comInputNumber {
    .ivu-form-item {
      .ivu-input-number {
        width: 100%;
      }
    }
  }
  .inline {
    .ivu-date-picker {
      width: auto !important;
    }
  }
  .comTimePicker {
    .ivu-form-item {
      .ivu-date-picker {
        width: 100%;
      }
    }
  }
  .ivu-form-item {
    .ivu-form-item-content {
      textarea {
        resize: none;
      }
    }
  }
  .comQuery .ivu-form.ivu-form-inline {
    .ivu-form-item {
      display: inline-block;
    }
  }
}
.modalStyle {
  .ivu-modal {
    top: 50px;
    .ivu-modal-body {
      height: ~"calc(100vh - 210px)";
      overflow-y: auto;
      div.height {
        height: 100%;
      }
    }
  }
}

.ivu-modal-footer {
  button.ivu-btn-text {
    color: #fff;
    background-color: #ed4014;
    border-color: #ed4014;
  }
}

// 行内表单样式
.ivu-form.ivu-form-inline {
  div.dtSelect, div.dtInput, div.dtDatePicker {
    display: inline-block;
    vertical-align: top;
    div:first-child {
      .ivu-form-item {
        .ivu-form-item-content {
          .ivu-select-default, .ivu-date-picker-rel, .ivu-input-wrapper-default {
            width: 100%;
            min-width: 162px;
          }
        }
      }
    }
  }
  .ivu-form-item {
    display: block;
  }
}
.ivu-form .ivu-date-picker {
  width: 100%;
}